.class public Lcom/xingbook/paint/view/PaintView;
.super Landroid/view/View;


# instance fields
.field a:Z

.field b:I

.field private c:Landroid/graphics/Canvas;

.field private d:Lcom/xingbook/paint/a/a/a;

.field private e:Landroid/graphics/Bitmap;

.field private f:Landroid/graphics/Bitmap;

.field private g:I

.field private h:I

.field private i:I

.field private j:I

.field private k:Landroid/graphics/Paint;

.field private l:Lcom/xingbook/paint/view/e;

.field private m:I

.field private n:I

.field private o:I

.field private p:Lcom/xingbook/paint/a/a/b;

.field private q:I

.field private r:Lcom/xingbook/paint/a/a/d;

.field private s:Landroid/graphics/Paint$Style;

.field private t:Z

.field private u:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/xingbook/paint/view/PaintView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 4

    const/4 v3, 0x4

    const/4 v2, 0x0

    const/4 v1, 0x0

    invoke-direct {p0, p1, p2}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    iput-boolean v2, p0, Lcom/xingbook/paint/view/PaintView;->a:Z

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->c:Landroid/graphics/Canvas;

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->e:Landroid/graphics/Bitmap;

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->f:Landroid/graphics/Bitmap;

    iput v2, p0, Lcom/xingbook/paint/view/PaintView;->g:I

    iput v2, p0, Lcom/xingbook/paint/view/PaintView;->h:I

    const/4 v0, 0x3

    iput v0, p0, Lcom/xingbook/paint/view/PaintView;->i:I

    const/4 v0, -0x1

    iput v0, p0, Lcom/xingbook/paint/view/PaintView;->j:I

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->k:Landroid/graphics/Paint;

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->l:Lcom/xingbook/paint/view/e;

    const/high16 v0, -0x100

    iput v0, p0, Lcom/xingbook/paint/view/PaintView;->m:I

    iput v3, p0, Lcom/xingbook/paint/view/PaintView;->n:I

    iput v3, p0, Lcom/xingbook/paint/view/PaintView;->o:I

    iput v2, p0, Lcom/xingbook/paint/view/PaintView;->b:I

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->p:Lcom/xingbook/paint/a/a/b;

    iput v2, p0, Lcom/xingbook/paint/view/PaintView;->q:I

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->r:Lcom/xingbook/paint/a/a/d;

    sget-object v0, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    iput-object v0, p0, Lcom/xingbook/paint/view/PaintView;->s:Landroid/graphics/Paint$Style;

    iput-boolean v2, p0, Lcom/xingbook/paint/view/PaintView;->t:Z

    const/16 v0, 0x14

    iput v0, p0, Lcom/xingbook/paint/view/PaintView;->u:I

    invoke-direct {p0}, Lcom/xingbook/paint/view/PaintView;->g()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 4

    const/4 v3, 0x4

    const/4 v2, 0x0

    const/4 v1, 0x0

    invoke-direct {p0, p1, p2, p3}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    iput-boolean v2, p0, Lcom/xingbook/paint/view/PaintView;->a:Z

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->c:Landroid/graphics/Canvas;

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->e:Landroid/graphics/Bitmap;

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->f:Landroid/graphics/Bitmap;

    iput v2, p0, Lcom/xingbook/paint/view/PaintView;->g:I

    iput v2, p0, Lcom/xingbook/paint/view/PaintView;->h:I

    const/4 v0, 0x3

    iput v0, p0, Lcom/xingbook/paint/view/PaintView;->i:I

    const/4 v0, -0x1

    iput v0, p0, Lcom/xingbook/paint/view/PaintView;->j:I

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->k:Landroid/graphics/Paint;

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->l:Lcom/xingbook/paint/view/e;

    const/high16 v0, -0x100

    iput v0, p0, Lcom/xingbook/paint/view/PaintView;->m:I

    iput v3, p0, Lcom/xingbook/paint/view/PaintView;->n:I

    iput v3, p0, Lcom/xingbook/paint/view/PaintView;->o:I

    iput v2, p0, Lcom/xingbook/paint/view/PaintView;->b:I

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->p:Lcom/xingbook/paint/a/a/b;

    iput v2, p0, Lcom/xingbook/paint/view/PaintView;->q:I

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->r:Lcom/xingbook/paint/a/a/d;

    sget-object v0, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    iput-object v0, p0, Lcom/xingbook/paint/view/PaintView;->s:Landroid/graphics/Paint$Style;

    iput-boolean v2, p0, Lcom/xingbook/paint/view/PaintView;->t:Z

    const/16 v0, 0x14

    iput v0, p0, Lcom/xingbook/paint/view/PaintView;->u:I

    invoke-direct {p0}, Lcom/xingbook/paint/view/PaintView;->g()V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/paint/view/PaintView;)Landroid/graphics/Bitmap;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->f:Landroid/graphics/Bitmap;

    return-object v0
.end method

.method private a(Landroid/graphics/Canvas;)V
    .locals 1

    iget v0, p0, Lcom/xingbook/paint/view/PaintView;->i:I

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    invoke-direct {p0, p1}, Lcom/xingbook/paint/view/PaintView;->b(Landroid/graphics/Canvas;)V

    goto :goto_0

    :pswitch_1
    invoke-direct {p0, p1}, Lcom/xingbook/paint/view/PaintView;->c(Landroid/graphics/Canvas;)V

    goto :goto_0

    :pswitch_2
    invoke-direct {p0, p1}, Lcom/xingbook/paint/view/PaintView;->d(Landroid/graphics/Canvas;)V

    goto :goto_0

    :pswitch_3
    invoke-direct {p0, p1}, Lcom/xingbook/paint/view/PaintView;->e(Landroid/graphics/Canvas;)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method static synthetic a(Lcom/xingbook/paint/view/PaintView;II)V
    .locals 0

    invoke-direct {p0, p1, p2}, Lcom/xingbook/paint/view/PaintView;->b(II)V

    return-void
.end method

.method static synthetic b(Lcom/xingbook/paint/view/PaintView;)I
    .locals 1

    iget v0, p0, Lcom/xingbook/paint/view/PaintView;->g:I

    return v0
.end method

.method private b(II)V
    .locals 2

    sget-object v0, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {p1, p2, v0}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/paint/view/PaintView;->e:Landroid/graphics/Bitmap;

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->c:Landroid/graphics/Canvas;

    iget-object v1, p0, Lcom/xingbook/paint/view/PaintView;->e:Landroid/graphics/Bitmap;

    invoke-virtual {v0, v1}, Landroid/graphics/Canvas;->setBitmap(Landroid/graphics/Bitmap;)V

    return-void
.end method

.method private b(Landroid/graphics/Canvas;)V
    .locals 11

    invoke-virtual {p0}, Lcom/xingbook/paint/view/PaintView;->getWidth()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/paint/view/PaintView;->getHeight()I

    move-result v2

    if-le v1, v2, :cond_0

    add-int/lit8 v0, v2, -0x14

    :goto_0
    sub-int/2addr v1, v0

    div-int/lit8 v1, v1, 0x2

    int-to-float v1, v1

    sub-int/2addr v2, v0

    div-int/lit8 v2, v2, 0x2

    int-to-float v2, v2

    div-int/lit8 v3, v0, 0x2

    int-to-float v3, v3

    add-float/2addr v3, v1

    int-to-float v4, v0

    add-float/2addr v4, v1

    div-int/lit8 v5, v0, 0x2

    int-to-float v5, v5

    add-float/2addr v5, v2

    int-to-float v0, v0

    add-float/2addr v0, v2

    new-instance v6, Landroid/graphics/Paint;

    invoke-direct {v6}, Landroid/graphics/Paint;-><init>()V

    const/high16 v7, 0x3300

    invoke-virtual {v6, v7}, Landroid/graphics/Paint;->setColor(I)V

    sget-object v7, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v6, v7}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    const/high16 v7, 0x4080

    invoke-virtual {v6, v7}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    new-instance v7, Landroid/graphics/Paint;

    invoke-direct {v7}, Landroid/graphics/Paint;-><init>()V

    const/high16 v8, 0x3300

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setColor(I)V

    sget-object v8, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    new-instance v8, Landroid/graphics/DashPathEffect;

    const/4 v9, 0x2

    new-array v9, v9, [F

    fill-array-data v9, :array_0

    const/high16 v10, 0x3f80

    invoke-direct {v8, v9, v10}, Landroid/graphics/DashPathEffect;-><init>([FF)V

    const/4 v9, 0x1

    invoke-virtual {v7, v9}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setPathEffect(Landroid/graphics/PathEffect;)Landroid/graphics/PathEffect;

    const/high16 v8, 0x4080

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    const/4 v8, -0x1

    invoke-virtual {p1, v8}, Landroid/graphics/Canvas;->drawColor(I)V

    const/16 v8, 0x10

    new-array v8, v8, [F

    const/4 v9, 0x0

    aput v1, v8, v9

    const/4 v9, 0x1

    aput v2, v8, v9

    const/4 v9, 0x2

    aput v4, v8, v9

    const/4 v9, 0x3

    aput v2, v8, v9

    const/4 v9, 0x4

    aput v1, v8, v9

    const/4 v9, 0x5

    aput v2, v8, v9

    const/4 v9, 0x6

    aput v1, v8, v9

    const/4 v9, 0x7

    aput v0, v8, v9

    const/16 v9, 0x8

    aput v1, v8, v9

    const/16 v9, 0x9

    aput v0, v8, v9

    const/16 v9, 0xa

    aput v4, v8, v9

    const/16 v9, 0xb

    aput v0, v8, v9

    const/16 v9, 0xc

    aput v4, v8, v9

    const/16 v9, 0xd

    aput v2, v8, v9

    const/16 v9, 0xe

    aput v4, v8, v9

    const/16 v9, 0xf

    aput v0, v8, v9

    invoke-virtual {p1, v8, v6}, Landroid/graphics/Canvas;->drawLines([FLandroid/graphics/Paint;)V

    const/16 v6, 0x8

    new-array v6, v6, [F

    const/4 v8, 0x0

    aput v1, v6, v8

    const/4 v1, 0x1

    aput v5, v6, v1

    const/4 v1, 0x2

    aput v4, v6, v1

    const/4 v1, 0x3

    aput v5, v6, v1

    const/4 v1, 0x4

    aput v3, v6, v1

    const/4 v1, 0x5

    aput v2, v6, v1

    const/4 v1, 0x6

    aput v3, v6, v1

    const/4 v1, 0x7

    aput v0, v6, v1

    invoke-virtual {p1, v6, v7}, Landroid/graphics/Canvas;->drawLines([FLandroid/graphics/Paint;)V

    return-void

    :cond_0
    add-int/lit8 v0, v1, -0x14

    goto/16 :goto_0

    nop

    :array_0
    .array-data 0x4
        0x0t 0x0t 0x0t 0x41t
        0x0t 0x0t 0x0t 0x41t
    .end array-data
.end method

.method static synthetic c(Lcom/xingbook/paint/view/PaintView;)I
    .locals 1

    iget v0, p0, Lcom/xingbook/paint/view/PaintView;->h:I

    return v0
.end method

.method private c(Landroid/graphics/Canvas;)V
    .locals 11

    invoke-virtual {p0}, Lcom/xingbook/paint/view/PaintView;->getWidth()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/paint/view/PaintView;->getHeight()I

    move-result v2

    if-le v1, v2, :cond_0

    add-int/lit8 v0, v2, -0x14

    :goto_0
    sub-int/2addr v1, v0

    div-int/lit8 v1, v1, 0x2

    int-to-float v1, v1

    sub-int/2addr v2, v0

    div-int/lit8 v2, v2, 0x2

    int-to-float v2, v2

    div-int/lit8 v3, v0, 0x2

    int-to-float v3, v3

    add-float/2addr v3, v1

    int-to-float v4, v0

    add-float/2addr v4, v1

    div-int/lit8 v5, v0, 0x2

    int-to-float v5, v5

    add-float/2addr v5, v2

    int-to-float v0, v0

    add-float/2addr v0, v2

    new-instance v6, Landroid/graphics/Paint;

    invoke-direct {v6}, Landroid/graphics/Paint;-><init>()V

    const/high16 v7, 0x3300

    invoke-virtual {v6, v7}, Landroid/graphics/Paint;->setColor(I)V

    sget-object v7, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v6, v7}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    const/high16 v7, 0x4080

    invoke-virtual {v6, v7}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    new-instance v7, Landroid/graphics/Paint;

    invoke-direct {v7}, Landroid/graphics/Paint;-><init>()V

    const/high16 v8, 0x3300

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setColor(I)V

    sget-object v8, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    new-instance v8, Landroid/graphics/DashPathEffect;

    const/4 v9, 0x2

    new-array v9, v9, [F

    fill-array-data v9, :array_0

    const/high16 v10, 0x3f80

    invoke-direct {v8, v9, v10}, Landroid/graphics/DashPathEffect;-><init>([FF)V

    const/4 v9, 0x1

    invoke-virtual {v7, v9}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setPathEffect(Landroid/graphics/PathEffect;)Landroid/graphics/PathEffect;

    const/high16 v8, 0x4080

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    const/4 v8, -0x1

    invoke-virtual {p1, v8}, Landroid/graphics/Canvas;->drawColor(I)V

    const/16 v8, 0x10

    new-array v8, v8, [F

    const/4 v9, 0x0

    aput v1, v8, v9

    const/4 v9, 0x1

    aput v2, v8, v9

    const/4 v9, 0x2

    aput v4, v8, v9

    const/4 v9, 0x3

    aput v2, v8, v9

    const/4 v9, 0x4

    aput v1, v8, v9

    const/4 v9, 0x5

    aput v2, v8, v9

    const/4 v9, 0x6

    aput v1, v8, v9

    const/4 v9, 0x7

    aput v0, v8, v9

    const/16 v9, 0x8

    aput v1, v8, v9

    const/16 v9, 0x9

    aput v0, v8, v9

    const/16 v9, 0xa

    aput v4, v8, v9

    const/16 v9, 0xb

    aput v0, v8, v9

    const/16 v9, 0xc

    aput v4, v8, v9

    const/16 v9, 0xd

    aput v2, v8, v9

    const/16 v9, 0xe

    aput v4, v8, v9

    const/16 v9, 0xf

    aput v0, v8, v9

    invoke-virtual {p1, v8, v6}, Landroid/graphics/Canvas;->drawLines([FLandroid/graphics/Paint;)V

    const/16 v6, 0x10

    new-array v6, v6, [F

    const/4 v8, 0x0

    aput v1, v6, v8

    const/4 v8, 0x1

    aput v5, v6, v8

    const/4 v8, 0x2

    aput v4, v6, v8

    const/4 v8, 0x3

    aput v5, v6, v8

    const/4 v5, 0x4

    aput v3, v6, v5

    const/4 v5, 0x5

    aput v2, v6, v5

    const/4 v5, 0x6

    aput v3, v6, v5

    const/4 v3, 0x7

    aput v0, v6, v3

    const/16 v3, 0x8

    aput v1, v6, v3

    const/16 v3, 0x9

    aput v2, v6, v3

    const/16 v3, 0xa

    aput v4, v6, v3

    const/16 v3, 0xb

    aput v0, v6, v3

    const/16 v3, 0xc

    aput v4, v6, v3

    const/16 v3, 0xd

    aput v2, v6, v3

    const/16 v2, 0xe

    aput v1, v6, v2

    const/16 v1, 0xf

    aput v0, v6, v1

    invoke-virtual {p1, v6, v7}, Landroid/graphics/Canvas;->drawLines([FLandroid/graphics/Paint;)V

    return-void

    :cond_0
    add-int/lit8 v0, v1, -0x14

    goto/16 :goto_0

    nop

    :array_0
    .array-data 0x4
        0x0t 0x0t 0x0t 0x41t
        0x0t 0x0t 0x0t 0x41t
    .end array-data
.end method

.method static synthetic d(Lcom/xingbook/paint/view/PaintView;)Landroid/graphics/Canvas;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->c:Landroid/graphics/Canvas;

    return-object v0
.end method

.method private d(Landroid/graphics/Canvas;)V
    .locals 11

    invoke-virtual {p0}, Lcom/xingbook/paint/view/PaintView;->getWidth()I

    move-result v0

    add-int/lit8 v0, v0, -0x78

    invoke-virtual {p0}, Lcom/xingbook/paint/view/PaintView;->getHeight()I

    move-result v1

    add-int/lit8 v1, v1, -0x14

    const/high16 v2, 0x4270

    const/high16 v3, 0x4120

    int-to-float v0, v0

    add-float/2addr v0, v2

    div-int/lit8 v4, v1, 0x3

    int-to-float v4, v4

    add-float/2addr v4, v3

    mul-int/lit8 v5, v1, 0x2

    div-int/lit8 v5, v5, 0x3

    int-to-float v5, v5

    add-float/2addr v5, v3

    int-to-float v1, v1

    add-float/2addr v1, v3

    new-instance v6, Landroid/graphics/Paint;

    invoke-direct {v6}, Landroid/graphics/Paint;-><init>()V

    const/high16 v7, 0x3300

    invoke-virtual {v6, v7}, Landroid/graphics/Paint;->setColor(I)V

    sget-object v7, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v6, v7}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    const/high16 v7, 0x4080

    invoke-virtual {v6, v7}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    new-instance v7, Landroid/graphics/Paint;

    invoke-direct {v7}, Landroid/graphics/Paint;-><init>()V

    const/high16 v8, 0x3300

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setColor(I)V

    sget-object v8, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    new-instance v8, Landroid/graphics/DashPathEffect;

    const/4 v9, 0x2

    new-array v9, v9, [F

    fill-array-data v9, :array_0

    const/high16 v10, 0x3f80

    invoke-direct {v8, v9, v10}, Landroid/graphics/DashPathEffect;-><init>([FF)V

    const/4 v9, 0x1

    invoke-virtual {v7, v9}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setPathEffect(Landroid/graphics/PathEffect;)Landroid/graphics/PathEffect;

    const/high16 v8, 0x4080

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    const/4 v8, -0x1

    invoke-virtual {p1, v8}, Landroid/graphics/Canvas;->drawColor(I)V

    const/16 v8, 0x8

    new-array v8, v8, [F

    const/4 v9, 0x0

    aput v2, v8, v9

    const/4 v9, 0x1

    aput v3, v8, v9

    const/4 v9, 0x2

    aput v0, v8, v9

    const/4 v9, 0x3

    aput v3, v8, v9

    const/4 v3, 0x4

    aput v2, v8, v3

    const/4 v3, 0x5

    aput v1, v8, v3

    const/4 v3, 0x6

    aput v0, v8, v3

    const/4 v3, 0x7

    aput v1, v8, v3

    invoke-virtual {p1, v8, v6}, Landroid/graphics/Canvas;->drawLines([FLandroid/graphics/Paint;)V

    const/16 v1, 0x8

    new-array v1, v1, [F

    const/4 v3, 0x0

    aput v2, v1, v3

    const/4 v3, 0x1

    aput v4, v1, v3

    const/4 v3, 0x2

    aput v0, v1, v3

    const/4 v3, 0x3

    aput v4, v1, v3

    const/4 v3, 0x4

    aput v2, v1, v3

    const/4 v2, 0x5

    aput v5, v1, v2

    const/4 v2, 0x6

    aput v0, v1, v2

    const/4 v0, 0x7

    aput v5, v1, v0

    invoke-virtual {p1, v1, v7}, Landroid/graphics/Canvas;->drawLines([FLandroid/graphics/Paint;)V

    return-void

    nop

    :array_0
    .array-data 0x4
        0x0t 0x0t 0x0t 0x41t
        0x0t 0x0t 0x0t 0x41t
    .end array-data
.end method

.method private e(Landroid/graphics/Canvas;)V
    .locals 1

    iget v0, p0, Lcom/xingbook/paint/view/PaintView;->j:I

    invoke-virtual {p1, v0}, Landroid/graphics/Canvas;->drawColor(I)V

    return-void
.end method

.method private g()V
    .locals 2

    new-instance v0, Landroid/graphics/Canvas;

    invoke-direct {v0}, Landroid/graphics/Canvas;-><init>()V

    iput-object v0, p0, Lcom/xingbook/paint/view/PaintView;->c:Landroid/graphics/Canvas;

    new-instance v0, Landroid/graphics/Paint;

    const/4 v1, 0x4

    invoke-direct {v0, v1}, Landroid/graphics/Paint;-><init>(I)V

    iput-object v0, p0, Lcom/xingbook/paint/view/PaintView;->k:Landroid/graphics/Paint;

    new-instance v0, Lcom/xingbook/paint/view/e;

    iget v1, p0, Lcom/xingbook/paint/view/PaintView;->u:I

    invoke-direct {v0, p0, p0, v1}, Lcom/xingbook/paint/view/e;-><init>(Lcom/xingbook/paint/view/PaintView;Lcom/xingbook/paint/view/PaintView;I)V

    iput-object v0, p0, Lcom/xingbook/paint/view/PaintView;->l:Lcom/xingbook/paint/view/e;

    const/4 v0, 0x0

    iput v0, p0, Lcom/xingbook/paint/view/PaintView;->b:I

    const/4 v0, 0x1

    iput v0, p0, Lcom/xingbook/paint/view/PaintView;->q:I

    invoke-virtual {p0}, Lcom/xingbook/paint/view/PaintView;->a()V

    return-void
.end method

.method private h()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    instance-of v0, v0, Lcom/xingbook/paint/a/a/c;

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/xingbook/paint/view/PaintView;->q:I

    packed-switch v0, :pswitch_data_0

    :goto_0
    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    check-cast v0, Lcom/xingbook/paint/a/a/c;

    iget-object v1, p0, Lcom/xingbook/paint/view/PaintView;->r:Lcom/xingbook/paint/a/a/d;

    invoke-interface {v0, v1}, Lcom/xingbook/paint/a/a/c;->a(Lcom/xingbook/paint/a/a/d;)V

    :cond_0
    return-void

    :pswitch_0
    new-instance v1, Lcom/xingbook/paint/b/c;

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    check-cast v0, Lcom/xingbook/paint/a/a/c;

    invoke-direct {v1, v0}, Lcom/xingbook/paint/b/c;-><init>(Lcom/xingbook/paint/a/a/c;)V

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->r:Lcom/xingbook/paint/a/a/d;

    goto :goto_0

    :pswitch_1
    new-instance v1, Lcom/xingbook/paint/b/d;

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    check-cast v0, Lcom/xingbook/paint/a/a/c;

    invoke-direct {v1, v0}, Lcom/xingbook/paint/b/d;-><init>(Lcom/xingbook/paint/a/a/c;)V

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->r:Lcom/xingbook/paint/a/a/d;

    goto :goto_0

    :pswitch_2
    new-instance v1, Lcom/xingbook/paint/b/g;

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    check-cast v0, Lcom/xingbook/paint/a/a/c;

    invoke-direct {v1, v0}, Lcom/xingbook/paint/b/g;-><init>(Lcom/xingbook/paint/a/a/c;)V

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->r:Lcom/xingbook/paint/a/a/d;

    goto :goto_0

    :pswitch_3
    new-instance v1, Lcom/xingbook/paint/b/f;

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    check-cast v0, Lcom/xingbook/paint/a/a/c;

    invoke-direct {v1, v0}, Lcom/xingbook/paint/b/f;-><init>(Lcom/xingbook/paint/a/a/c;)V

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->r:Lcom/xingbook/paint/a/a/d;

    goto :goto_0

    :pswitch_4
    new-instance v1, Lcom/xingbook/paint/b/b;

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    check-cast v0, Lcom/xingbook/paint/a/a/c;

    invoke-direct {v1, v0}, Lcom/xingbook/paint/b/b;-><init>(Lcom/xingbook/paint/a/a/c;)V

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->r:Lcom/xingbook/paint/a/a/d;

    goto :goto_0

    :pswitch_5
    new-instance v1, Lcom/xingbook/paint/b/e;

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    check-cast v0, Lcom/xingbook/paint/a/a/c;

    invoke-direct {v1, v0}, Lcom/xingbook/paint/b/e;-><init>(Lcom/xingbook/paint/a/a/c;)V

    iput-object v1, p0, Lcom/xingbook/paint/view/PaintView;->r:Lcom/xingbook/paint/a/a/d;

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_2
    .end packed-switch
.end method

.method private i()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->f:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->f:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->f:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/paint/view/PaintView;->f:Landroid/graphics/Bitmap;

    :cond_0
    return-void
.end method

.method private j()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->e:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->e:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->e:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/paint/view/PaintView;->e:Landroid/graphics/Bitmap;

    :cond_0
    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Ljava/lang/String;
    .locals 9

    const/4 v0, 0x0

    new-instance v1, Ljava/io/File;

    sget-object v2, Lcom/xingbook/c/c;->w:Ljava/lang/String;

    invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v2

    if-nez v2, :cond_0

    invoke-virtual {v1}, Ljava/io/File;->mkdirs()Z

    :cond_0
    new-instance v1, Ljava/io/File;

    new-instance v2, Ljava/lang/StringBuilder;

    sget-object v3, Lcom/xingbook/c/c;->w:Ljava/lang/String;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ".png"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    :try_start_0
    invoke-virtual {v1}, Ljava/io/File;->createNewFile()Z

    new-instance v2, Ljava/io/FileOutputStream;

    invoke-direct {v2, v1}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V

    iget v3, p0, Lcom/xingbook/paint/view/PaintView;->g:I

    iget v4, p0, Lcom/xingbook/paint/view/PaintView;->h:I

    sget-object v5, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v3, v4, v5}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v3

    new-instance v4, Landroid/graphics/Canvas;

    invoke-direct {v4}, Landroid/graphics/Canvas;-><init>()V

    invoke-virtual {v4, v3}, Landroid/graphics/Canvas;->setBitmap(Landroid/graphics/Bitmap;)V

    invoke-direct {p0, v4}, Lcom/xingbook/paint/view/PaintView;->a(Landroid/graphics/Canvas;)V

    iget-object v5, p0, Lcom/xingbook/paint/view/PaintView;->e:Landroid/graphics/Bitmap;

    const/4 v6, 0x0

    const/4 v7, 0x0

    iget-object v8, p0, Lcom/xingbook/paint/view/PaintView;->k:Landroid/graphics/Paint;

    invoke-virtual {v4, v5, v6, v7, v8}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    sget-object v4, Landroid/graphics/Bitmap$CompressFormat;->PNG:Landroid/graphics/Bitmap$CompressFormat;

    const/16 v5, 0x64

    invoke-virtual {v3, v4, v5, v2}, Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z

    invoke-virtual {v3}, Landroid/graphics/Bitmap;->recycle()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    :try_start_1
    invoke-virtual {v2}, Ljava/io/FileOutputStream;->flush()V

    invoke-virtual {v2}, Ljava/io/FileOutputStream;->close()V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v0

    :goto_0
    return-object v0

    :catch_0
    move-exception v1

    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_0

    :catch_1
    move-exception v1

    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_0
.end method

.method a()V
    .locals 4

    const/4 v0, 0x0

    iget v1, p0, Lcom/xingbook/paint/view/PaintView;->b:I

    packed-switch v1, :pswitch_data_0

    :goto_0
    iput-object v0, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    invoke-direct {p0}, Lcom/xingbook/paint/view/PaintView;->h()V

    return-void

    :pswitch_0
    new-instance v0, Lcom/xingbook/paint/a/d;

    iget v1, p0, Lcom/xingbook/paint/view/PaintView;->n:I

    iget v2, p0, Lcom/xingbook/paint/view/PaintView;->m:I

    iget-object v3, p0, Lcom/xingbook/paint/view/PaintView;->s:Landroid/graphics/Paint$Style;

    invoke-direct {v0, v1, v2, v3}, Lcom/xingbook/paint/a/d;-><init>(IILandroid/graphics/Paint$Style;)V

    goto :goto_0

    :pswitch_1
    new-instance v0, Lcom/xingbook/paint/a/g;

    iget v1, p0, Lcom/xingbook/paint/view/PaintView;->n:I

    iget v2, p0, Lcom/xingbook/paint/view/PaintView;->m:I

    iget-object v3, p0, Lcom/xingbook/paint/view/PaintView;->s:Landroid/graphics/Paint$Style;

    invoke-direct {v0, v1, v2, v3}, Lcom/xingbook/paint/a/g;-><init>(IILandroid/graphics/Paint$Style;)V

    goto :goto_0

    :pswitch_2
    new-instance v0, Lcom/xingbook/paint/a/c;

    iget v1, p0, Lcom/xingbook/paint/view/PaintView;->n:I

    iget v2, p0, Lcom/xingbook/paint/view/PaintView;->m:I

    iget-object v3, p0, Lcom/xingbook/paint/view/PaintView;->s:Landroid/graphics/Paint$Style;

    invoke-direct {v0, v1, v2, v3}, Lcom/xingbook/paint/a/c;-><init>(IILandroid/graphics/Paint$Style;)V

    goto :goto_0

    :pswitch_3
    new-instance v0, Lcom/xingbook/paint/a/e;

    iget v1, p0, Lcom/xingbook/paint/view/PaintView;->n:I

    iget v2, p0, Lcom/xingbook/paint/view/PaintView;->m:I

    iget-object v3, p0, Lcom/xingbook/paint/view/PaintView;->s:Landroid/graphics/Paint$Style;

    invoke-direct {v0, v1, v2, v3}, Lcom/xingbook/paint/a/e;-><init>(IILandroid/graphics/Paint$Style;)V

    goto :goto_0

    :pswitch_4
    new-instance v0, Lcom/xingbook/paint/a/f;

    iget v1, p0, Lcom/xingbook/paint/view/PaintView;->n:I

    iget v2, p0, Lcom/xingbook/paint/view/PaintView;->m:I

    iget-object v3, p0, Lcom/xingbook/paint/view/PaintView;->s:Landroid/graphics/Paint$Style;

    invoke-direct {v0, v1, v2, v3}, Lcom/xingbook/paint/a/f;-><init>(IILandroid/graphics/Paint$Style;)V

    goto :goto_0

    :pswitch_5
    new-instance v0, Lcom/xingbook/paint/a/b;

    iget v1, p0, Lcom/xingbook/paint/view/PaintView;->o:I

    invoke-direct {v0, v1}, Lcom/xingbook/paint/a/b;-><init>(I)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
    .end packed-switch
.end method

.method public a(II)V
    .locals 1

    iput p1, p0, Lcom/xingbook/paint/view/PaintView;->i:I

    const/4 v0, 0x3

    if-ne p1, v0, :cond_0

    iput p2, p0, Lcom/xingbook/paint/view/PaintView;->j:I

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/paint/view/PaintView;->invalidate()V

    return-void
.end method

.method public b()V
    .locals 2

    invoke-direct {p0}, Lcom/xingbook/paint/view/PaintView;->j()V

    invoke-direct {p0}, Lcom/xingbook/paint/view/PaintView;->i()V

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->l:Lcom/xingbook/paint/view/e;

    invoke-virtual {v0}, Lcom/xingbook/paint/view/e;->a()V

    iget v0, p0, Lcom/xingbook/paint/view/PaintView;->g:I

    iget v1, p0, Lcom/xingbook/paint/view/PaintView;->h:I

    invoke-direct {p0, v0, v1}, Lcom/xingbook/paint/view/PaintView;->b(II)V

    invoke-virtual {p0}, Lcom/xingbook/paint/view/PaintView;->invalidate()V

    return-void
.end method

.method public c()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->l:Lcom/xingbook/paint/view/e;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->l:Lcom/xingbook/paint/view/e;

    invoke-virtual {v0}, Lcom/xingbook/paint/view/e;->b()V

    :cond_0
    return-void
.end method

.method public d()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->l:Lcom/xingbook/paint/view/e;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->l:Lcom/xingbook/paint/view/e;

    invoke-virtual {v0}, Lcom/xingbook/paint/view/e;->c()V

    :cond_0
    return-void
.end method

.method public e()Z
    .locals 1

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->l:Lcom/xingbook/paint/view/e;

    invoke-virtual {v0}, Lcom/xingbook/paint/view/e;->d()Z

    move-result v0

    return v0
.end method

.method public f()Z
    .locals 1

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->l:Lcom/xingbook/paint/view/e;

    invoke-virtual {v0}, Lcom/xingbook/paint/view/e;->e()Z

    move-result v0

    return v0
.end method

.method public getBackGroundColor()I
    .locals 1

    iget v0, p0, Lcom/xingbook/paint/view/PaintView;->j:I

    return v0
.end method

.method public getBitmapArry()[B
    .locals 1

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->e:Landroid/graphics/Bitmap;

    invoke-static {v0}, Lcom/xingbook/paint/c/a;->b(Landroid/graphics/Bitmap;)[B

    move-result-object v0

    return-object v0
.end method

.method public getBrushSize()I
    .locals 1

    iget v0, p0, Lcom/xingbook/paint/view/PaintView;->n:I

    return v0
.end method

.method public getCurrentPainter()I
    .locals 1

    iget v0, p0, Lcom/xingbook/paint/view/PaintView;->b:I

    return v0
.end method

.method public getEraserSize()I
    .locals 1

    iget v0, p0, Lcom/xingbook/paint/view/PaintView;->o:I

    return v0
.end method

.method public getPenColor()I
    .locals 1

    iget v0, p0, Lcom/xingbook/paint/view/PaintView;->m:I

    return v0
.end method

.method public getSnapShoot()Landroid/graphics/Bitmap;
    .locals 3

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/view/PaintView;->setDrawingCacheEnabled(Z)V

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/view/PaintView;->buildDrawingCache(Z)V

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/view/PaintView;->getDrawingCache(Z)Landroid/graphics/Bitmap;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/paint/c/a;->a(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;

    move-result-object v1

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v2

    if-nez v2, :cond_0

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    :cond_0
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/view/PaintView;->setDrawingCacheEnabled(Z)V

    return-object v1
.end method

.method public onDraw(Landroid/graphics/Canvas;)V
    .locals 3

    const/4 v2, 0x0

    invoke-direct {p0, p1}, Lcom/xingbook/paint/view/PaintView;->a(Landroid/graphics/Canvas;)V

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->e:Landroid/graphics/Bitmap;

    iget-object v1, p0, Lcom/xingbook/paint/view/PaintView;->k:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v2, v2, v1}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    iget-boolean v0, p0, Lcom/xingbook/paint/view/PaintView;->t:Z

    if-nez v0, :cond_0

    iget v0, p0, Lcom/xingbook/paint/view/PaintView;->b:I

    const/4 v1, 0x5

    if-eq v0, v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    invoke-interface {v0, p1}, Lcom/xingbook/paint/a/a/a;->a(Landroid/graphics/Canvas;)V

    :cond_0
    return-void
.end method

.method protected onSizeChanged(IIII)V
    .locals 1

    invoke-super {p0, p1, p2, p3, p4}, Landroid/view/View;->onSizeChanged(IIII)V

    iget-boolean v0, p0, Lcom/xingbook/paint/view/PaintView;->a:Z

    if-nez v0, :cond_0

    if-lez p1, :cond_0

    if-lez p2, :cond_0

    iput p1, p0, Lcom/xingbook/paint/view/PaintView;->g:I

    iput p2, p0, Lcom/xingbook/paint/view/PaintView;->h:I

    invoke-direct {p0, p1, p2}, Lcom/xingbook/paint/view/PaintView;->b(II)V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/paint/view/PaintView;->a:Z

    :cond_0
    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 5

    const/4 v4, 0x1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v1

    const/4 v2, 0x0

    iput-boolean v2, p0, Lcom/xingbook/paint/view/PaintView;->t:Z

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v2

    packed-switch v2, :pswitch_data_0

    :goto_0
    return v4

    :pswitch_0
    iget-object v2, p0, Lcom/xingbook/paint/view/PaintView;->c:Landroid/graphics/Canvas;

    iget-object v3, p0, Lcom/xingbook/paint/view/PaintView;->e:Landroid/graphics/Bitmap;

    invoke-virtual {v2, v3}, Landroid/graphics/Canvas;->setBitmap(Landroid/graphics/Bitmap;)V

    invoke-virtual {p0}, Lcom/xingbook/paint/view/PaintView;->a()V

    iget-object v2, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    invoke-interface {v2, v0, v1}, Lcom/xingbook/paint/a/a/a;->a(FF)V

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->l:Lcom/xingbook/paint/view/e;

    invoke-virtual {v0}, Lcom/xingbook/paint/view/e;->f()V

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->p:Lcom/xingbook/paint/a/a/b;

    invoke-interface {v0}, Lcom/xingbook/paint/a/a/b;->b()V

    invoke-virtual {p0}, Lcom/xingbook/paint/view/PaintView;->invalidate()V

    goto :goto_0

    :pswitch_1
    iget-object v2, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    invoke-interface {v2, v0, v1}, Lcom/xingbook/paint/a/a/a;->b(FF)V

    iget v0, p0, Lcom/xingbook/paint/view/PaintView;->b:I

    const/4 v1, 0x5

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    iget-object v1, p0, Lcom/xingbook/paint/view/PaintView;->c:Landroid/graphics/Canvas;

    invoke-interface {v0, v1}, Lcom/xingbook/paint/a/a/a;->a(Landroid/graphics/Canvas;)V

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/paint/view/PaintView;->invalidate()V

    goto :goto_0

    :pswitch_2
    iget-object v2, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    invoke-interface {v2}, Lcom/xingbook/paint/a/a/a;->c()Z

    move-result v2

    if-eqz v2, :cond_1

    iget-object v2, p0, Lcom/xingbook/paint/view/PaintView;->l:Lcom/xingbook/paint/view/e;

    iget-object v3, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    invoke-virtual {v2, v3}, Lcom/xingbook/paint/view/e;->a(Lcom/xingbook/paint/a/a/a;)V

    iget-object v2, p0, Lcom/xingbook/paint/view/PaintView;->p:Lcom/xingbook/paint/a/a/b;

    if-eqz v2, :cond_1

    iget-object v2, p0, Lcom/xingbook/paint/view/PaintView;->p:Lcom/xingbook/paint/a/a/b;

    invoke-interface {v2}, Lcom/xingbook/paint/a/a/b;->a()V

    :cond_1
    iget-object v2, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    invoke-interface {v2, v0, v1}, Lcom/xingbook/paint/a/a/a;->c(FF)V

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    iget-object v1, p0, Lcom/xingbook/paint/view/PaintView;->c:Landroid/graphics/Canvas;

    invoke-interface {v0, v1}, Lcom/xingbook/paint/a/a/a;->a(Landroid/graphics/Canvas;)V

    invoke-virtual {p0}, Lcom/xingbook/paint/view/PaintView;->invalidate()V

    iput-boolean v4, p0, Lcom/xingbook/paint/view/PaintView;->t:Z

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_2
        :pswitch_1
    .end packed-switch
.end method

.method public setBackGroundColor(I)V
    .locals 0

    iput p1, p0, Lcom/xingbook/paint/view/PaintView;->j:I

    invoke-virtual {p0}, Lcom/xingbook/paint/view/PaintView;->invalidate()V

    return-void
.end method

.method public setBrushSize(I)V
    .locals 0

    iput p1, p0, Lcom/xingbook/paint/view/PaintView;->n:I

    return-void
.end method

.method public setCallBack(Lcom/xingbook/paint/a/a/b;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/paint/view/PaintView;->p:Lcom/xingbook/paint/a/a/b;

    return-void
.end method

.method public setCurrentPainterType(I)V
    .locals 1

    packed-switch p1, :pswitch_data_0

    const/4 v0, 0x0

    iput v0, p0, Lcom/xingbook/paint/view/PaintView;->b:I

    :goto_0
    return-void

    :pswitch_0
    iput p1, p0, Lcom/xingbook/paint/view/PaintView;->b:I

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
    .end packed-switch
.end method

.method public setCurrentShapType(I)V
    .locals 1

    packed-switch p1, :pswitch_data_0

    const/4 v0, 0x1

    iput v0, p0, Lcom/xingbook/paint/view/PaintView;->q:I

    :goto_0
    return-void

    :pswitch_0
    iput p1, p0, Lcom/xingbook/paint/view/PaintView;->q:I

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
    .end packed-switch
.end method

.method public setEraserSize(I)V
    .locals 0

    iput p1, p0, Lcom/xingbook/paint/view/PaintView;->o:I

    return-void
.end method

.method public setForeBitMap(Landroid/graphics/Bitmap;)V
    .locals 2

    if-eqz p1, :cond_0

    invoke-direct {p0}, Lcom/xingbook/paint/view/PaintView;->j()V

    invoke-direct {p0}, Lcom/xingbook/paint/view/PaintView;->i()V

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/paint/view/PaintView;->getWidth()I

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/paint/view/PaintView;->getHeight()I

    move-result v1

    invoke-static {p1, v0, v1}, Lcom/xingbook/paint/c/a;->a(Landroid/graphics/Bitmap;II)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/paint/view/PaintView;->e:Landroid/graphics/Bitmap;

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->e:Landroid/graphics/Bitmap;

    invoke-static {v0}, Lcom/xingbook/paint/c/a;->a(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/paint/view/PaintView;->f:Landroid/graphics/Bitmap;

    if-eqz p1, :cond_1

    invoke-virtual {p1}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {p1}, Landroid/graphics/Bitmap;->recycle()V

    :cond_1
    invoke-virtual {p0}, Lcom/xingbook/paint/view/PaintView;->invalidate()V

    return-void
.end method

.method public setPenColor(I)V
    .locals 0

    iput p1, p0, Lcom/xingbook/paint/view/PaintView;->m:I

    return-void
.end method

.method public setPenStyle(Landroid/graphics/Paint$Style;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/paint/view/PaintView;->s:Landroid/graphics/Paint$Style;

    return-void
.end method

.method protected setTempForeBitmap(Landroid/graphics/Bitmap;)V
    .locals 2

    if-eqz p1, :cond_0

    invoke-direct {p0}, Lcom/xingbook/paint/view/PaintView;->j()V

    invoke-static {p1}, Lcom/xingbook/paint/c/a;->a(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/paint/view/PaintView;->e:Landroid/graphics/Bitmap;

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->e:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->c:Landroid/graphics/Canvas;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/paint/view/PaintView;->c:Landroid/graphics/Canvas;

    iget-object v1, p0, Lcom/xingbook/paint/view/PaintView;->e:Landroid/graphics/Bitmap;

    invoke-virtual {v0, v1}, Landroid/graphics/Canvas;->setBitmap(Landroid/graphics/Bitmap;)V

    invoke-virtual {p0}, Lcom/xingbook/paint/view/PaintView;->invalidate()V

    :cond_0
    return-void
.end method

.method public toString()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "mPaint"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/xingbook/paint/view/PaintView;->d:Lcom/xingbook/paint/a/a/a;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/paint/view/PaintView;->l:Lcom/xingbook/paint/view/e;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
